<div>
    <h2 data-translate="milkbeeApp.comment.home.title">Comments</h2>
    <jhi-alert></jhi-alert>
    <br/>
    <div class="table-responsive">
        <table class="jh-table table table-striped col-md-12">
            <thead>
                <tr jh-sort="vm.predicate" ascending="vm.reverse" callback="vm.transition()">
                    <th width="10%" ></th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="comment in vm.comments track by comment.id">
                    <td >
                    	<div>
                    		{{comment.createdAt | date:'medium'}}
                            <button type="submit"
                                    ui-sref="cardcoments({cardId:comment.cardId})"
                                    class="btn btn-info btn-sm">
                                <span class="glyphicon glyphicon-home"></span>
                                <span class="hidden-xs hidden-sm" data-translate="entity.action.origincard"></span>
                            </button>
                            <button type="submit"
                                    ui-sref="comment.delete({id:comment.id})"
                                    class="btn btn-danger btn-sm">
                                <span class="glyphicon glyphicon-remove-circle"></span>
                                <span class="hidden-xs hidden-sm" data-translate="entity.action.delete"></span>
                            </button>
                    	</div>
	                    <div>
	                    	<article id="word-display" ng-bind-html="comment.content | convertHTML ">
	                    	</article>
	                    </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class="text-center">
        <jhi-item-count page="vm.page" total="vm.queryCount" items-per-page="vm.itemsPerPage"></jhi-item-count>
        <uib-pagination class="pagination-sm" total-items="vm.totalItems" items-per-page="vm.itemsPerPage" ng-model="vm.page" ng-change="vm.transition()"></uib-pagination>
    </div>
</div>
